package com.github.satant.job.biz.impl;

import com.github.satant.job.biz.StShowImageBiz;
import com.github.satant.job.common.biz.impl.BaseBizImpl;
import com.github.satant.job.entity.StShowImage;
import com.github.satant.job.mapper.StShowImageMapper;
import java.time.LocalDateTime;
import org.springframework.stereotype.Service;

/**
 * 朋友圈图片表
 *
 * @author dear_satant
 * @email 446269825@qq.com
 * @date 2018-06-26 21:32:17
 */
@Service
public class StShowImageBizImpl extends BaseBizImpl<StShowImageMapper,StShowImage> implements StShowImageBiz {

    @Override
    public StShowImage insertSelective(StShowImage entity) {
        setDefault(entity);
        return super.insertSelective(entity);
    }

    private void setDefault(StShowImage entity){
        entity.setCreateTime(LocalDateTime.now());
    }
}